package com.ruoyi.hqfinance.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum NetworkUndertakeCentreLevyDetailEnum
{
    transportCode("transportCode", "运单号"),
    signDate("signDate", "业务日期"),
    surplusReceivableLevy("surplusReceivableLevy", "剩余应收派费"),
    receivedLevyThrough("receivedLevyThrough", "已收-派费直达"),
    totalLevy("totalLevy", "派费合计"),
    baseLevy("baseLevy", "基础派费"),
    cooperativeStationSignatureDeduction("cooperativeStationSignatureDeduction", "合作站柜签收扣减"),
    networkNameId("networkNameId", "派件网点名称"),
    dispatchSalesman("dispatchSalesman", "派件业务员"),
    hqSettleWeight("hqSettleWeight", "总部结算重量"),
    businessType("businessType", "业务类型");

    private final String code;
    private final String info;

    NetworkUndertakeCentreLevyDetailEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkUndertakeCentreLevyDetailEnum value : NetworkUndertakeCentreLevyDetailEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
